From d9a965c69d0712567efd68c94a1f38f9cd50056c Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Thu, 12 May 2016 06:32:47 -0400 Subject: [PATCH] Make updateCollation wait for slaves every 500 (instead of 2000) 2000 writes per wfWaitForSlaves() seems a bit high. There was a report of this script causing some slave lag when being run. Note that, the amount of time between wfWaitForSlaves() was previously increased in r97146. Bug: T58041 Change-Id: I07a29499775a17255865f25e6b9f1058f898193b --- maintenance/updateCollation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index 6d9a616077..aae419597a 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -34,7 +34,7 @@ require_once __DIR__ . '/Maintenance.php'; */ class UpdateCollation extends Maintenance { const BATCH_SIZE = 100; // Number of rows to process in one batch - const SYNC_INTERVAL = 20; // Wait for slaves after this many batches + const SYNC_INTERVAL = 5; // Wait for slaves after this many batches public $sizeHistogram = []; -- 2.20.1